﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

using Game.Level;

namespace Game.Editor
{
    public partial class MilestoneEditorControl : UserControl
    {
        readonly GameMilestone _Milestone;

        public MilestoneEditorControl(GameMilestone milestone)
        {
            _Milestone = milestone;
            InitializeComponent();

            this.textBox1.Text = milestone.Description;
        }

        public GameMilestone Milestone
        {
            get { return _Milestone; }
        }

        void textBox1_TextChanged_1(object sender, TextChangedEventArgs e)
        {
            _Milestone.Description = this.textBox1.Text;
        }

    }
}
